﻿<UserControl x:Class="EasySL.UI.Controls.ProductEdit"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    Width="250" Height="130">
    <Grid x:Name="LayoutRoot" Background="White">
        <Grid Margin="5">
            <Grid.RowDefinitions>
                <RowDefinition Height="30"></RowDefinition>
                <RowDefinition Height="30"></RowDefinition>
                <RowDefinition Height="30"></RowDefinition>
                <RowDefinition Height="30"></RowDefinition>
                <RowDefinition Height="30"></RowDefinition>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="70"></ColumnDefinition>
                <ColumnDefinition Width="*"></ColumnDefinition>
            </Grid.ColumnDefinitions>
            <TextBlock Grid.Row="0" Grid.Column="0" Margin="3" FontSize="12" HorizontalAlignment="Right">Name:</TextBlock>
            <TextBox Grid.Row="0" Text="{Binding Path=Name, Mode=TwoWay}" Grid.Column="1" Margin="3" FontSize="12"></TextBox>

            <TextBlock Grid.Row="1" Grid.Column="0" Margin="3" FontSize="12" HorizontalAlignment="Right">Price:</TextBlock>
            <TextBox Grid.Row="1" Text="{Binding Path=Price, Mode=TwoWay}" Grid.Column="1" Margin="3" FontSize="12"></TextBox>

            <TextBlock Grid.Row="2" Grid.Column="0" Margin="3" FontSize="12" HorizontalAlignment="Right">Category:</TextBlock>
            <ComboBox x:Name="categoryList" Grid.Row="2" Grid.Column="1" Margin="3" FontSize="12"
                              DisplayMemberPath="CategoryName" SelectedItem="{Binding Path=Category, Mode=TwoWay}" />

            <TextBlock Grid.Row="3" Grid.Column="0" Margin="3" FontSize="12" HorizontalAlignment="Right">Introduce:</TextBlock>
            <TextBox Grid.Row="3" Grid.Column="1" Text="{Binding Path=Info, Mode=TwoWay}" Margin="3" FontSize="12"></TextBox>
        </Grid>
    </Grid>
</UserControl>
